Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOLR-9280 - make nodeName a configurable parameter in solr.xml #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kelaban
Copy link

@kelaban kelaban commented Jul 8, 2016

This patch makes live nodeName configurable via solr.xml by setting

<solr>
    <solrcloud>
        <str name="nodeName">${solr.nodeName:}</str>
    </solrcloud> 
</solr>

To test, I randomly set nodeName in AbstractFullDistribZkTestBase for complete coverage.

I've gotten all tests to pass both when ALWAYS using a random nodeName and with it being set randomly. However during one particular run I got a test failure for the following:
ant test -Dtestcase=TestReqParamsAPI -Dtests.method=test -Dtests.seed=391BC4715DE8C2FE -Dtests.slow=true -Dtests.locale=pl-PL -Dtests.timezone=Asia/Chungking -Dtests.asserts=true -Dtests.file.encoding=UTF-8 but am unable to reproduce the issue in eclipse and at this time am not sure if its related

@kelaban
Copy link
Author

kelaban commented Jul 8, 2016

Randomly setting nodeName in tests which extend from AbstractFullDistribZkTestBase hits about 60 solr cloud tests. But there are also about 30 other cloud tests which use MiniSolrCloudCluster which will not get this randomness applied. To increase coverage we can add randomness into this class as well.

mnilsson23 pushed a commit to mnilsson23/lucene-solr that referenced this pull request Aug 26, 2016
@kelaban kelaban force-pushed the jira/master/SOLR-9280 branch from b1de1f9 to b9bfb85 Compare October 17, 2016 20:23
@kelaban
Copy link
Author

kelaban commented Oct 17, 2016

Updated so the patch now applies cleanly. I've been having trouble getting tests to pass on vanilla master branch, so I cannot tell if this is causing any to fail. I've spot checked a few tests with this patch and they worked fine

@kelaban
Copy link
Author

kelaban commented Oct 17, 2016

Additionally work for SOLR-9281 is being done here (https://github.com/kelaban/lucene-solr/tree/jira/master/SOLR-9281) but will hold out on a PR as it relies on this branch

markrmiller added a commit that referenced this pull request Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant